﻿using Ardalis.Specification;
using HuaweiCloud.Dotnet.Samples.ESports.Main.Entities;

namespace HuaweiCloud.Dotnet.Samples.ESports.Main.Specification
{
    public class PointsSpecification : Specification<Points>
    {
        /// <summary>
        /// 根据用户id找到积分数据
        /// </summary>
        /// <param name="userId">用户id</param>
        public PointsSpecification(Guid userId)
        {
            Query.Where(x => x.UserId == userId);
        }
    }
}
